package cn.itsource.feign.user;


import cn.itsource.domain.user.User;
import cn.itsource.fallback.user.UserFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-server",fallback = UserFeignFallBack.class)
public interface UserFeignClient {

    @GetMapping(value = "user/findOne/{id}")
     User findOne(@PathVariable Long id);
}
